/*
 * Copyright (c) 2025. hallele, Inc All rights reserved.
 */

package cn.hallele.ms.portalcenter.application.action.user.query.list.flow;

import cn.hallele.infrastructure.metadata.io.Page;
import cn.hallele.ms.portalcenter.application.bo.UserBO;
import cn.hallele.ms.portalcenter.application.bo.UserQueryBO;
import cn.hallele.ms.portalcenter.application.das.UserBDDas;
import cn.hallele.ms.starter.web.framework.node.ServiceFlow;
import com.yomahub.liteflow.annotation.LiteflowComponent;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * hallele_ms_portalcenter
 *
 * @author anle5
 * @since 2025/1/2 22:15
 */
@Slf4j
@LiteflowComponent
public class QueryUserListFlow extends ServiceFlow {
    @Autowired
    private UserBDDas userBDDas;

    @Override
    public void process() throws Exception {
        UserQueryBO userQueryBO = this.getRequestData();
        Page<UserBO> userBOPage = userBDDas.listUser(userQueryBO);
        this.setResult(userBOPage);
    }
}
